import java.util.List;


/**
 * 
 */

/**
 * @author zero
 *
 */
public class GameLogic
{
    private ShapeLogic shapeLogic = new ShapeLogic();

    public void nextStep(GameContext gc)
    {
        List<Shape> fallingShapes = gc.getFallingShapeList();

        if (fallingShapes.size() == 0)
        {
            nextRound(gc);
            return;
        }

        for (Shape shape : fallingShapes)
        {
            shapeLogic.nextStep(gc, shape);
        }
    }

    public void nextRound(GameContext gc)
    {
        Shape shape = prepareNextRound(gc);
        gc.addFallingShape(shape);
    }

    public Shape prepareNextRound(GameContext gc)
    {
        Shape shape = new Shape();
        return shape;

    }

}
